#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2023/7/25 23:06
# @Author : 何若溥

from base.ObjectMap import ObjectMap


class ExternalLinkPage(ObjectMap):

    def goto_imooc(self, driver):
        """
        切换窗口为慕课网
        :param driver:
        :return:
        """
        self.switch_window_2_latest_handle(driver)
        return driver.title
